<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h2>用户注册</h2>
    <form action="" method="post" enctype="multipart/form-data">
        用户名：<input type="text" name="username" value="tom" readonly disabled> <br>
        密码：<input type="password" name="password"> <br>
        手机号：<input type="text" name="phone" placeholder="请输入手机号"> <br>
        性别：<input type="radio" name="sex" value="male" checked>男
              <input type="radio" name="sex" value="female">女 <br>
        爱好：<input type="checkbox" value="eat" name="hobbies"> 吃饭
             <input type="checkbox" value="sleep" name="hobbies" checked> 睡觉
             <input type="checkbox" value="doudou" name="hobbies"> 打豆豆 <br>
        头像：<input type="file" name="avatar" accept=".jpg, .png, .gif"> <br>
             <input type="hidden" name="id" value="9527"> 
        学历：<select name="degree">
                <option value="0">--请选择学历--</option>
                <option value="1">大专</option>
                <option value="2" selected>本科</option>
                <option value="3">研究生</option>
                <option value="4">博士</option>
             </select> <br>
        学习经历：
             <textarea name="info" cols="30" rows="6" style="resize: none;"></textarea> <br>

             <input type="submit" value="注册">
             <input type="reset">
             <input type="button" value="普通按钮">
             <!-- button标签的type属性，默认为submit -->
             <button type="submit">按钮1</button>
    </form>
</body>
</html>